<?php
    session_start();
                if(!isset($_SESSION["userlogin"])|| $_SESSION["vaitro"]!="Quản Trị"){
                $_SESSION['thongbao']= "Bạn vui lòng đăng nhập theo đúng quy trình. Xin cám ơn!";
                header("location:../index.php");
                }       
?>
<html>
    <head>
        <title>Đề án</title>
        <meta http-equiv="content-type" content="text/html; charset = utf-8" />
        <link rel="stylesheet" type="text/css" href="../style.css" />
        <script language="javascript">
            
        </script>

    </head>
    <body>
    <div id="wrap">
        
        <?php
            session_start();
	       include "../include/header.php";
           include "../include/mod_menu_admin.php";
           //include "../util/dataUtil.php";
            
                $madean = $_SESSION['madean'];
                $tendean = $_POST['tendean'];
                $diadiemda = $_POST['diadiemda'];
                $maphong = $_POST['maphong'];
                $ghichu = $_POST['ghichu'];
            
                $sql_capnhat = "UPDATE dean SET  `TenDA` =  '$tendean',`DDiemDA` =  '$diadiemda',`MaPhong` =  '$maphong',`GhiChu` =  '$ghichu' WHERE `MaDA` =$madean ";
                //echo $sql_capnhat;
                //echo "- $madean";
                executeQuery($sql_capnhat);
                echo "
                        <script>
                            alert ('Cập nhật đề án thành công!');
                            window.location = '../admin/dean.php';
                        </script>
                        
                     ";             
            
            

        
        ?> 
            
     </div>
    </body>
</html>